
<?php echo $this->element('box-search'); ?>
<?php echo $this->element('box-slides-home'); ?>



<iframe frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:600px; height: 70px;" scrolling="no" src="https://www.facebook.com/plugins/facepile.php?app_id=176920379070091&amp;width=600&amp;max_rows=1"></iframe>

	<div class="wrapper home">
		<div class="grid-5">
			
			<div class="box" id="shops">
				<h4><?php __('Tiendas y Marcas'); ?></h4>
				<div class="thumbs">
				<?php foreach($shops AS $row): ?>
					
					<?php echo $html->link($row['Shop']['name'], array('shop' => $row['Shop']['slug'], 'controller' => 'shops', 'action' => 'index'), array('escape' => false, 'style' => 'background-image: url(' . $row[0]['logo'] . ')')); ?>
				<?php endforeach; ?>
				
				<h5><?php __('Registra tu tienda'); ?></h5>
				
				</div>
			</div>
	
			<div class="box" id="newsletter">
				<?php __('¿Deseas recibir información de las novedades de nuestras tiendas por correo electrónico?'); ?>
				<?php echo $form->create('Newsletter'); ?>
					<?php echo $form->input('email', array('div' => false, 'label' => false, 'default' => __('Ingresa tu correo', true))); ?>
					<?php echo $form->button('Ir', array('div' => false, 'label' => false)); ?>
				<?php echo $form->end(); ?>
			</div>
			
			<?php //echo $html->link(__('Gana 1 iPod Touch, solo debes registrarte como comprador y evaluar los productos de tus tiendas favoritas y estarás participando.', true), array('controller' => 'pages', 'action' => 'display', 'rating'), array('class' => 'banner-iPod')); ?>

			<!-- <iframe src="http://www.facebook.com/plugins/likebox.php?id=265511750178&amp;width=280&amp;height=110&amp;connections=1&amp;stream=false&amp;header=false&amp;footer=false&amp;locale=es_ES&amp;sdk=joey&amp;css=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:280px; height:110px;" allowTransparency="true"></iframe> -->
			<!-- <iframe src="http://www.facebook.com/plugins/like.php?href=265511750178&amp;layout=standard&amp;show_faces=false&amp;width=280&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:280px; height:35px;" allowTransparency="true"></iframe> -->
		</div>
			
		<div class="grid-11">
			<h4><?php __('Últimos productos'); ?></h4>
			<div class="last-products">
			<?php if (!empty($lastProducts)): ?>
			<?php foreach($lastProducts AS $row): ?>
				<div class="product">
					<p class="preview"><?php echo $html->image($row[0]['preview']); ?></p>
					<p class="name"><?php echo $html->link($row['ProductDescription']['name'], array('shop' => $row['Shop']['slug'], 'controller' => 'products', 'action' => 'details', 'slug' => $row['ProductDescription']['slug'])); ?></p>
					<!-- <p class="price"><?php //echo $row['Currency']['code'] . $number->format($row['Product']['price'], array('before' => $row['Currency']['symbol_left'], 'after' => $row['Currency']['symbol_right'], 'places' => $row['Currency']['decimal_places'], 'decimals' => $row['Currency']['decimals'], 'thousands' => $row['Currency']['thousands'], 'escape' => false)); ?></p> -->
				</div>
			<?php endforeach; ?>
			<?php endif; ?>
			</div>
		</div>
	</div>
	
	<?php $javascript->link(array('/static/js/plugin/jquery.cycle.all.min'), null, false); ?>
	<script type="text/javascript" charset="utf-8">
		//<![CDATA[
			(function($){
				$('#slides').cycle({
					fx: 'fade',
					timeout: 10000,
					speed: 500,
					delay: -5000,
					activePagerClass: 'current',
					pager: '#slides-nav ul',
					pagerAnchorBuilder: function(idx, slide){
						return '#slides-nav ul li:eq(' + idx + ') a';
					}
				});
			})(jQuery);
		//]]>
	</script>